package com.acoffee.mapper;

import com.acoffee.pojo.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author acoffee
 * @create 2021-10-28 16:28
 */
public interface GoodsMapper {
    List<Goods> queryGoodsIsNew();

    List<Goods> queryGoodsIsHot();

    Goods queryById(int id);

    int queryCountByCid(int cid);

    List<Goods> queryPageByCid(@Param("cid") int cid, @Param("index") int index);

    List<Goods> queryRankGoods(int cid);
}
